<?php get_header(); ?>

<!-- Disable Slideshow -->
<!-- HOMEPAGE SLIDESHOW (start) -->		

<?php //if( $themeblvd_default_homepage_slideshow == 'showslideshow' ) : ?>

    <?php
	/*
    $home_slideshow_options = array (
        'slideshow' => $themeblvd_default_homepage_taxonomy,
        'size' => 'slideshow-large',
        'transition' => $themeblvd_featured_transition,
        'speed' => $themeblvd_featured_autoplay_duration,
    );

    echo complexity_slideshow($home_slideshow_options);
	*/
    ?>


<?php //elseif( $themeblvd_default_homepage_slideshow == 'htmlblock' ) : ?>

<!--
<div id="slideshow-wrapper">
    <div class="pad">

    <?php //echo stripslashes($themeblvd_default_homepage_custom_html); ?>

    </div><!-- .pad (end) 
</div><!-- #slideshow-wrapper (end) -->

<?php //endif; ?>

<!-- HOMEPAGE SLIDESHOW (end) -->


<!-- PRIMARY CONTENT (start) -->	

<div id="primary">
	
	<!-- HOMEPAGE SORTABLE ELEMENTS (start) -->
	
	<?php
	foreach($themeblvd_homepage_sort as $element) :
	
		switch($element) : 
			
			##############################################################
            # SLOGAN
            ##############################################################
			
			case "slogan" :
			
			?>
				
				<!-- SLOGAN (start) -->
				
				<div id="slogan">
					
					<div class="slogan-text<?php if(!$themeblvd_homepage_slogan_button) {echo " slogan-center";} ?>">
					
						<?php echo stripslashes($themeblvd_homepage_slogan); ?>
					
					</div><!-- .slogan-text (end) -->
					
					<?php if($themeblvd_homepage_slogan_button) : ?>
					
					<div class="slogan-button">
						
						<a href="<?php echo $themeblvd_homepage_slogan_link; ?>" title="<?php echo $themeblvd_homepage_slogan_button; ?>" class="button">
							<?php echo stripslashes($themeblvd_homepage_slogan_button); ?>
						</a>
						
					</div><!-- .slogan-button (end) -->
					
					<?php endif; ?>
					
					<div class="clear"></div>
					
				</div><!-- #slogan (end) -->
			
				<!-- SLOGAN (end) -->
					
				<?php break; ?>
				
			<?php
			
			##############################################################
            # WIDGETS
            ##############################################################
			
			case "widgets" :
			
			?>
				
				<!-- WIDGETS COLUMNS (start) -->
	
			    <div id="default-home-widget-area">
			
			        <!-- Home Widgets (start) -->
			
			        <?php themeblvd_widget_columns_display("homepage", $themeblvd_homepage_columns); ?>
			
			        <!-- Home Widgets (end) -->
			
			        <div class="clear"></div>
			
			    </div><!-- #home-widget-area (end) -->
				
				<!-- WIDGETS COLUMNS (end) -->
				
				<?php break; ?>
				
			<?php
			
			##############################################################
            # PAGE CONTENT
            ##############################################################
			
			case "page" :
			
			?>
				
				<!-- PAGE CONTENT (start) -->
	
				<div id="home-content">
				
					<div id="full-width-content">
						
						<div class="pad">
						
							<?php if($themeblvd_homepage_page_id) : ?>
						
								<?php $page = get_page($themeblvd_homepage_page_id); ?>
								
								<?php echo apply_filters('the_content', $page->post_content); ?>
								
							<?php else : ?>
								
								<p class="warning">
					            	<?php _e("You need to select a page to pull content from for this area or hide this section all together. You can do all this in the Homepage section of your theme options page.", "themeblvd"); ?>
								</p>
							
							<?php endif; ?>
							
							<div class="clear"></div>
						
						</div><!-- .pad (end) -->
							
					</div><!-- #full-width-content (end) -->
						
				
				</div><!-- #home-content (end) -->
				
				<!-- PAGE CONTENT (end) -->
				
				<?php break; ?>
				
			<?php
			
			##############################################################
            # PORTFOLIO
            ##############################################################
			
			case "portfolio" :
			
			?>

				<!-- HOMEPAGE PORTFOLIO (start) -->
								
				<div id="portfolio">
					
					<?php echo complexity_portfolio($themeblvd_homepage_portfolio, $themeblvd_homepage_portfolio_num, $themeblvd_thumbnail, $themeblvd_show_title, $themeblvd_show_excerpt, $themeblvd_show_read_more, $themeblvd_media_color, $themeblvd_video_logo, $themeblvd_video_logo_width, $themeblvd_video_logo_height); ?>
					
					<!-- clear just in case portfolio items not divisable by 3 -->
					<div class="clear"></div>
					
					<!-- Link to Blog -->
				    <?php if($themeblvd_homepage_portfolio_link == 'yes') : ?>
				    <div class="nav-entries">
			            <a href="<?php echo $themeblvd_homepage_portfolio_url; ?>" title="<?php echo $themeblvd_homepage_portfolio_text; ?>">
			            	<?php echo $themeblvd_homepage_portfolio_text; ?>
			            </a>
			        </div>
					<?php endif; ?>
						
				</div><!-- #portfolio (end) -->
				
				<div class="clear"></div>
				
				<!-- HOMEPAGE PORTFOLIO (end) -->
				
				<?php break; ?>
			
			<?php
			
			##############################################################
            # BLOG + SIDEBAR
            ##############################################################
			
			case "blog" :
			
			?>
				
				<!-- HOMEPAGE BLOG (start) -->
				
				<?php if($themeblvd_sidebar == 'left') : ?>
					<?php get_sidebar(); ?>	
				<?php endif; ?>
				
				<div id="content">
					<div class="pad">
					
						<?php
					    if ( get_query_var('paged') ) {
					
					        $paged = get_query_var('paged');
					
					    } elseif ( get_query_var('page') ) {
					
					        $paged = get_query_var('page');
					
					    } else {
					
					        $paged = 1;
					
					    }
					    
					    //Blog it up
				    	global $more;
				    	$more = 0;
					
					    query_posts( array( 'post_type' => 'post', 'paged' => $paged) );
					
					    if ( have_posts() ) : while ( have_posts() ) : the_post();
					    ?>
						
						<div class="entry">
	
			                <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
			
			                <span class="author-box">
			                    <span class="date"><?php _e('Posted on', 'themeblvd'); ?> <?php the_time( get_option('date_format') ); ?> <?php _e("by", "themeblvd"); ?> <?php the_author(); ?></span>
			                    <?php if( comments_open() ): ?>
			                    <a href="<?php the_permalink(); ?>#comments-wrap" class="comments-link"><?php comments_number('No Comments', '1 Comment', '% Comments'); ?></a>
			                    <?php endif; ?>
			                </span>
			
			                <div class="description">
						
			                    <?php if ( has_post_thumbnail() ) : ?>
			                        <?php if($themeblvd_blog_thumb == 'square') : ?>
			                        	<?php the_post_thumbnail('blog', array('class' => 'pretty')); ?>
			                        <?php else : ?>
			                        	<?php the_post_thumbnail('blog-stretch', array('class' => 'pretty stretch')); ?>
			                        <?php endif; ?>
			                    <?php endif; ?>
			                	
			                	<?php if($themeblvd_blog_content == 'content') : ?>
			                	
				                    <?php the_content(); ?>
				                    
								<?php else : ?>
									
									<?php the_excerpt(); ?>
				
				                    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="button">
				                    	<?php _e('Read more', 'themeblvd'); ?>
				                    </a>
				                    
								<?php endif;?>
			                    
			                </div><!-- .description (end) -->
			                
			                <div class="clear"></div>
			
			            </div><!-- .entry (end) -->
						
						<?php endwhile; ?>
					
					    <div class="clear"></div>
					
					    <!-- Link to Blog -->
					    <?php if($themeblvd_homepage_blog_link == 'yes') : ?>
					    <div class="nav-entries">
				            <a href="<?php echo $themeblvd_homepage_blog_url; ?>" title="<?php echo $themeblvd_homepage_blog_text; ?>">
				            	<?php echo $themeblvd_homepage_blog_text; ?>
				            </a>
				        </div>
				        <?php endif; ?>
					
					    <?php else : ?>
					    	<p class="warning">
					    		<?php _e('There are no posts to show.', "themeblvd"); ?>
					    	</p>
					    <?php endif; ?>
					
					</div><!-- .pad (end) -->	
				</div><!-- #content (end) -->
				
				<?php if($themeblvd_sidebar == 'right') : ?>
					<?php get_sidebar(); ?>	
				<?php endif; ?>
				
				<div class="clear"></div>
				
				<!-- HOMEPAGE BLOG (end) -->
				
				<?php break; ?>
		
		<?php 
		endswitch;
		
	endforeach;
	?>
	<div id="logo-airline" style="padding: 15px 40px;background-color: #ffffff;
									border-top: 1px solid #dddddd;
									border-bottom: 1px solid #dddddd;text-align:center">
		<img src="http://phuthaitravel.com//upload/partner/539948673_anh 1.jpg" border="none" align="center" alt="ảnh 1" style="cursor:pointer;margin:2px 10px;">
		<img src="http://phuthaitravel.com//upload/partner/1259035522_anh%202.jpg" border="none" align="center" alt="ảnh 1" style="cursor:pointer;margin:2px 10px;">
		<img src="http://phuthaitravel.com//upload/partner/515143877_anh%203.jpg" border="none" align="center" alt="ảnh 1" style="cursor:pointer;margin:2px 10px;">
		<img src="http://phuthaitravel.com//upload/partner/1810077055_anh%204.jpg" border="none" align="center" alt="ảnh 1" style="cursor:pointer;margin:2px 10px;">
		<img src="http://phuthaitravel.com//upload/partner/747140270_anh%205.jpg" border="none" align="center" alt="ảnh 1" style="cursor:pointer;margin:2px 10px;">
		<img src="http://phuthaitravel.com//upload/partner/1078183977_anh%208.jpg" border="none" align="center" alt="ảnh 1" style="cursor:pointer;margin:2px 10px;">
		<img src="http://phuthaitravel.com//upload/partner/1682423269_anh 6.jpg" border="none" align="center" alt="ảnh 6" style="cursor:pointer;margin:2px 10px;">
	</div>
	<!-- HOMEPAGE SORTABLE ELEMENTS (end) -->

<?php get_footer(); ?>